#!/bin/bash

filelist=`ls ./*.proto`  
for file in $filelist  
do  
echo $file  
mono ../protogen-master/bin/protogen.exe -i:$file -o:${file%.*}.cs  
done  